<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>帐号管理 - <s:text name="context.title"/></title>
	<%@ include file="/common/meta.jsp" %>
	
	<script>
		$(document).ready(function() {
			//聚焦第一个输入框
			//为inputForm注册validate函数
			$("#inputForm").validate({
				rules: {
					password: {
						required: true,
						minlength:3
					},
					passwordConfirm: {
						equalTo:"#password"
					}
				},
				messages: {
					passwordConfirm: {
						equalTo: "输入与上面相同的密码"
					}
				}
			});
		});
	</script>
</head>

<body>
	<h1 class="title01"><img src="${ctx}/images/02_15.gif" width="45" height="42" class="fl"/> <a href="#">更多</a>修改密码</h1>
	<form id="inputForm" action="password!save.action" method="post">
	<p align="center"><s:actionmessage theme="mytheme" cssClass="actionMessage"/></p>
	<fieldset class="fs_ys">
		<legend>修改密码</legend>
	    
	    <p>登录名:${entity.loginName }</p>
		<p>用户名:${entity.name }</p>
		<p>原密码：<input type="password" name="oldPassword" class="input_ys1" size="40"/></p>
		<p>密&nbsp;&nbsp;&nbsp;&nbsp;码:<input type="password" id="password" name="password"  class="input_ys1" size="40" value="${password}"/></p>
		<p>确认密码:<input type="password" id="passwordConfirm" class="input_ys1" name="passwordConfirm" size="40" value="${password}"/></p>
		<p>
			<input class="button" type="submit" value="提交" onclick="return confirm('确定提交?')"/>&nbsp;
					<input class="button" type="button" value="返回" onclick="history.back()"/>
		</p>		
	</fieldset>
		<input type="hidden" name="id" value="${id}"/>
	</form>
</body>
</html>
